using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using SmartLink.DTOS;
using SmartLink.DTOS.SysBasic;
using SmartLink.DTOS.SysBasic.PagePara;
using SmartLink.Application.IServices;
using SmartLink.Domain.Services;
using SmartLink.IRepository;
using SmartLink.Domain.IServices;

namespace SmartLink.Application.Services
{
    public class UserLoadingAppServices : IUserLoadingAppServices
    {
        private ISYS_UserLoadingServices _userLoadingServices;
        private IBIZ_OrganizationDepartmentServices _organizationDepartmentServices;

        public UserLoadingAppServices(ISYS_UserLoadingServices iSYS_UserLoadingServices, IBIZ_OrganizationDepartmentServices iBIZ_OrganizationDepartmentServices)
        {
            _userLoadingServices = iSYS_UserLoadingServices;
            _organizationDepartmentServices = iBIZ_OrganizationDepartmentServices;
        }

        //public Results<PageData<UserLoadingDTO>> GetLoadingLogs(UserLoadingLogPagePara model, int userId)
        //{
        //    var depts = _organizationDepartmentServices.FilterDepts(userId, model.OID, model.ODID);
        //    int count;
        //    var source = _userLoadingServices.GetLoadingLogs(model.KeyValue, model.ClientType, depts, model.PageIndex, model.PageSize, model.IsSearchTotal, out count);
        //    var data = AutoMapper.Mapper.Map<IEnumerable<UserLoadingDTO>>(source);
        //    var result = new PageData<UserLoadingDTO>();
        //    result.CurrentData = data;
        //    result.TotalCount = count;
        //    return InfrastructureAppService.Response(result);
        //}
    }
}
